package model

import "gopkg.in/mgo.v2/bson"

// User
// @Description: 用户
type User struct {
	Id       bson.ObjectId `bson:"_id,omitempty"`
	Account  string        `bson:"Account"`
	Password string        `bson:"Password"`
	//ChannelName string        `bson:"-,omitempty"`
}

func (user *User) CollectionName() string {
	return "user"
}
func (user *User) Id_() interface{} {
	return user.Account
}
func (user *User) IdString() string {
	return user.Id.Hex()
}
